package com.cskaoyan.service.Zyl_Shopping_cart_Service;

import com.cskaoyan.bean.marketBean.*;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MarketCartService_zyl {
    List<MarketCart> selectByExample_zyl(@Param("id") Integer id, @Param("deleted") Boolean deleted);

    int insert(MarketUser record);


    List<MarketUser> selectByExample(MarketUserExample example);

    long countByExample(MarketCartExample example);


    MarketGoods selectByPrimaryKey_zyl(Integer id);

    int insert(MarketCart record);

    MarketGoodsProduct select_zyl(@Param("id") Integer id, @Param("goodsId") Integer goodsId);
    int deleteByExample(MarketCartExample example);


    MarketGrouponRules select_zyl(Integer goods_id);
    List<MarketOrder> selectByExample(MarketOrderExample example);

    MarketCoupon selectByPrimaryKey_zyl_coupon(Integer id);
    MarketCouponUser selectByPrimaryKey_zyl_couponuser(Integer id);

    MarketAddress selectByPrimaryKey(Integer id);

    int update_zyl( BigDecimal productId, Integer goodsId, Short number, Integer id,Integer userId);

    int updateByExample(MarketCart record,MarketCartExample example);

    int updateMarketCart_zyl(Integer id,Integer checked,Integer userId);

    int updateByPrimaryKey(MarketCart record);
    List<MarketCart> selectByExample(MarketCartExample example);
}
